<?php

namespace app\components\traits;


trait Singleton
{
    use \app\traits\Singleton;
    protected \app\model\BaseModel $model;
    protected array $baseInfo = [];

    public function setConfig(array $baseInfo = [])
    {
        !empty($baseInfo) and self::$instance->baseInfo = $baseInfo;
        return $this;
    }

    protected function initialization(){
        !empty($this->modelName) and $this->model = Model($this->modelName);
    }
}